package hw2.jpa.ejb.strategy;

import java.io.Serializable;

import hw2.jpa.ejb.model.Contract;
import hw2.jpa.ejb.model.RevenueRecognition;

public class CompleteRecognitionStrategy extends RecognitionStrategy implements
		Serializable {

	private static final long serialVersionUID = 1L;

	@Override
	public void calculateRevenueRecognitions(Contract contract) {
		contract.addRevenueRecognition(new RevenueRecognition(contract
				.getRevenue(), contract.getWhenSigned()));
	}
}
